projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7bff36
)
Fix xm network-list through the Xen-API for managed domains.
author
Ewan Mellor
<ewan@xensource.com>
Tue, 20 Mar 2007 17:34:34 +0000
(17:34 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Tue, 20 Mar 2007 17:34:34 +0000
(17:34 +0000)
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
tools/python/xen/xm/main.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/main.py
b/tools/python/xen/xm/main.py
index c5b640ccec9a4fc41779dd0af9736c3ea5b688fe..a138afdd9592f1fc0fcb8510eeef7210f772694b 100644
(file)
--- a/
tools/python/xen/xm/main.py
+++ b/
tools/python/xen/xm/main.py
@@
-1692,7
+1692,8
@@
def xm_network_list(args):
vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom))
vif_properties = \
map(server.xenapi.VIF.get_runtime_properties, vif_refs)
- devs = map(lambda x: [x.get('handle'), map2sxp(x)], vif_properties)
+ devs = map(lambda (handle, properties): [handle, map2sxp(properties)],
+ zip(range(len(vif_properties)), vif_properties))
else:
devs = server.xend.domain.getDeviceSxprs(dom, 'vif')